"""
@File    ：el_repair_management.py
@Author  ：ixiaodu
@Date    ：2024/8/20
@Desc    ：
"""
from selenium.webdriver.common.by import By

# 报修管理-待受理页面元素
to_be_accepted = By.CSS_SELECTOR, 'div#tab-pending > .tab-label'
more_menus = By.XPATH, "//div[@class='el-table__fixed-body-wrapper']/table/tbody/tr[1]/td[13]//button/span[.='更多菜单']"
assigned = By.CSS_SELECTOR, "[x-placement] .el-dropdown-menu__item:nth-of-type(3)"
repair_worker = By.CSS_SELECTOR, ".repair-user"
assigned_submit = By.XPATH, "//body/div[@class='el-dialog__wrapper']/div[@role='dialog']//div[@class='dialog-footer']/button[2]/span[.='确定']"
response_info = By.XPATH, "/html//div[@role='alert']//h2[@class='el-notification__title']"

# 报修管理-处理中页面元素
processing = By.XPATH, "//div[@id='tab-processing']//span[.='处理中']"
add_repair_order = By.CSS_SELECTOR, "div:nth-of-type(7) > .search-item-content > .el-button.el-button--primary.el-button--small"
tenants = By.CSS_SELECTOR, "label:nth-of-type(2) > .el-radio-button__inner"
reporter = By.CSS_SELECTOR, ".el-form .el-form-item--small:nth-of-type(2) .el-input__inner"
reporter_value = By.CSS_SELECTOR, "[x-placement] li:nth-of-type(1) span"
report_type = By.CSS_SELECTOR, ".el-form .el-form-item--small:nth-of-type(5) .el-input__inner"
report_type_value = By.CSS_SELECTOR, "[x-placement] .el-select-dropdown__list .el-select-dropdown__item:nth-of-type(1)"
report_project = By.CSS_SELECTOR, ".el-form .el-form-item--small:nth-of-type(6) .el-input__inner"
report_project_value = By.CSS_SELECTOR, "[x-placement] li"
latest_repair_time = By.CSS_SELECTOR, ".el-date-editor--datetime .el-input__inner"
process_repair_worker = By.CSS_SELECTOR, ".el-row  label[role='radio'] > .el-radio-button__inner"
report_content = By.CSS_SELECTOR, ".el-textarea__inner"
img = By.CSS_SELECTOR, ".el-upload--picture-card"
add_repair_order_submit = By.XPATH, "//div/div/div[6]/div[@role='dialog']/div/div/button[2]/span[.='确定']"
